/* log.c */
#ifndef _CLIENT_H
#define _CLIENT_H

#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <time.h>
#include <stdarg.h>
#include "lutil.h"


#include "radius_cdef.h"

RADIUS_BEGIN_DECL



typedef struct radclient {
	uint32_t		ipaddr;
	uint32_t		netmask;
	char			longname[256];
	uint8_t			secret[32];
	char			shortname[32];
	struct radclient	*next;
} RADCLIENT;


RADCLIENT *clients;


int		read_clients_file(const char *file);
RADCLIENT	*client_find(uint32_t ipno);
const char	*client_name(uint32_t ipno);
void		client_walk(void);


RADIUS_END_DECL


#endif /* _CONFFILE_H */
